﻿using BLToolkit.DataAccess;
using BLToolkit.Mapping;

namespace Calendar.Logic.ObjectModel
{
    public abstract class JoinEntitys<TF, TS> : IJoinEntitys
        where TF : Entity
        where TS : Entity
    {
        [PrimaryKey(0)]
        public abstract int FRS_ID { get; protected internal set; }

        [PrimaryKey(1)]
        public abstract int SCN_ID { get; protected internal set; }

        [Association(ThisKey = "FRS_ID", OtherKey = "ID")]
        public TF FrsEntity;

        [Association(ThisKey = "SCN_ID", OtherKey = "ID")]
        public TS ScnEntity;

    }

    internal interface IJoinEntitys
    {
        int FRS_ID { get; }
        int SCN_ID { get; }
    }
}
